206. Araxis Merge File Comparison Report

Produced by Araxis Merge on 2021-05-13 09:09:02 +0000. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

206.1 Files compared

#LocationFileLast Modified
1/Applications/Ampps/www/Porto 3.2.2/Theme Files/Magento 2.x/Porto Theme/app/design/frontend/Smartwave/porto/Magento_Catalog/templates/product/viewrich_snippet.phtml2017-03-16 00:48:12 +0000
2/Applications/Ampps/www/Porto v4.0.0/Theme Files/Magento 2.x/Porto Theme/app/design/frontend/Smartwave/porto/Magento_Catalog/templates/product/viewrich_snippet.phtml2017-03-16 00:48:12 +0000

206.2 Comparison summary

DescriptionBetween
Files 1 and 2
Text BlocksLines
Unchanged170
Changed00
Inserted00
Removed00

206.3 Comparison options

WhitespaceConsecutive whitespace is treated as a single space
Character caseDifferences in character case are significant
Line endingsDifferences in line endings (CR and LF characters) are ignored
CR/LF charactersNot shown in the comparison detail
Active line-pairing rules

206.4 Active regular expressions

No regular expressions were active.

206.5 Comparison detail

1 <?php 1 <?php
2 $porto_helper = $this->helper('Smartwave\Porto\Helper\Data'); 2 $porto_helper = $this->helper('Smartwave\Porto\Helper\Data');
3 $rich_snippet = $porto_helper->getConfig('porto_settings/richsnippets'); 3 $rich_snippet = $porto_helper->getConfig('porto_settings/richsnippets');
4 if(isset($rich_snippet['enable']) && $rich_snippet['enable']) { 4 if(isset($rich_snippet['enable']) && $rich_snippet['enable']) {
5     $_product = $this->getProduct(); 5     $_product = $this->getProduct();
6     $summaryModel = $block->getReviewSummary(); 6     $summaryModel = $block->getReviewSummary();
7     $reviewCount = $summaryModel->getReviewsCount(); 7     $reviewCount = $summaryModel->getReviewsCount();
8     if (!$reviewCount) { 8     if (!$reviewCount) {
9         $reviewCount = 0; 9         $reviewCount = 0;
10     } 10     }
11     $ratingSummary = ($summaryModel->getRatingSummary()) ? $summaryModel->getRatingSummary() : 20; 11     $ratingSummary = ($summaryModel->getRatingSummary()) ? $summaryModel->getRatingSummary() : 20;
12 ?> 12 ?>
13     <div itemscope itemtype="http://schema.org/Product"> 13     <div itemscope itemtype="http://schema.org/Product">
14         <meta itemprop="name" content="<?php /* @escapeNotVerified */ echo $block->escapeQuote($block->stripTags($_product->getName())); ?>" /> 14         <meta itemprop="name" content="<?php /* @escapeNotVerified */ echo $block->escapeQuote($block->stripTags($_product->getName())); ?>" />
15         <meta itemprop="image" content="<?php /* @escapeNotVerified */ echo $block->stripTags($block->getImage($_product, 'product_base_image')->getImageUrl()); ?>" /> 15         <meta itemprop="image" content="<?php /* @escapeNotVerified */ echo $block->stripTags($block->getImage($_product, 'product_base_image')->getImageUrl()); ?>" />
16         <meta itemprop="description" content="<?php /* @escapeNotVerified */ echo $block->stripTags($_product->getDescription()); ?>" /> 16         <meta itemprop="description" content="<?php /* @escapeNotVerified */ echo $block->stripTags($_product->getDescription()); ?>" />
17         <meta itemprop="url" content="<?php /* @escapeNotVerified */ echo $block->stripTags($_product->getProductUrl()); ?>" /> 17         <meta itemprop="url" content="<?php /* @escapeNotVerified */ echo $block->stripTags($_product->getProductUrl()); ?>" />
18         <meta itemprop="sku" content="<?php /* @escapeNotVerified */ echo $block->stripTags($_product->getSku()); ?>" /> 18         <meta itemprop="sku" content="<?php /* @escapeNotVerified */ echo $block->stripTags($_product->getSku()); ?>" />
19         <div itemtype="http://schema.org/AggregateRating" itemscope itemprop="aggregateRating"> 19         <div itemtype="http://schema.org/AggregateRating" itemscope itemprop="aggregateRating">
20             <meta itemprop="worstRating" content="1" /> 20             <meta itemprop="worstRating" content="1" />
21             <meta itemprop="bestRating" content="5" /> 21             <meta itemprop="bestRating" content="5" />
22             <meta itemprop="ratingValue" content="<?php echo $ratingSummary / 20 ; ?>" /> 22             <meta itemprop="ratingValue" content="<?php echo $ratingSummary / 20 ; ?>" />
23             <meta itemprop="reviewCount" content="<?php echo $reviewCount; ?>" /> 23             <meta itemprop="reviewCount" content="<?php echo $reviewCount; ?>" />
24         </div> 24         </div>
25         <div itemprop="offers" itemscope itemtype="http://schema.org/Offer"> 25         <div itemprop="offers" itemscope itemtype="http://schema.org/Offer">
26             <meta itemprop="priceCurrency" content="<?php echo $block->getCurrencyCode() ?>" /> 26             <meta itemprop="priceCurrency" content="<?php echo $block->getCurrencyCode() ?>" />
27             <meta itemprop="price" content="<?php echo $_product->getFinalPrice(); ?>" /> 27             <meta itemprop="price" content="<?php echo $_product->getFinalPrice(); ?>" />
28             <?php if ($_product->isAvailable()): ?> 28             <?php if ($_product->isAvailable()): ?>
29                 <link itemprop="availability" href="http://schema.org/InStock" /> 29                 <link itemprop="availability" href="http://schema.org/InStock" />
30             <?php else : ?> 30             <?php else : ?>
31                 <link  itemprop="availability" href="http://schema.org/OutOfStock" /> 31                 <link  itemprop="availability" href="http://schema.org/OutOfStock" />
32             <?php endif ?> 32             <?php endif ?>
33         </div> 33         </div>
34     </div> 34     </div>
35 <?php }?> 35 <?php }?>